package com.ruoyi.business.utils;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import org.springframework.stereotype.Service;

import java.io.OutputStream;
/*自定义excel工具类*/
@Service
public class MyExcelUtil {
    /**
     * 获取ExcelWriter
     *
     * @param outputStream 输出流
     * @return ExcelWriter
     */
    public static ExcelWriter getExcelWriter(OutputStream outputStream) {
        return EasyExcel.write(outputStream).build();
    }
}
